package com.itheima.array;

public class Array01 {
    public static void main(String[] args) {
        int[] arr = {11,45,65,76,75,31,199};
        System.out.println("该数组的长度为" + arr.length);
        System.out.println(arr);
        int max = arr[0];
        for (int i = 0; i < arr.length; i++)//动态获取元素的个数

        {

            if (max < arr[i]) {
                max = arr[i];
            }
        }
        System.out.println(max);
    }
}